//
//  AnnotationView.h
//  Drawer
//
//  Created by Adam Cue on 1/18/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//	The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>

@protocol AnnotationViewDelegate
- (void)saveDrawing:(NSMutableArray *)touchPoints atPage:(int)page;
@end


@interface AnnotationView : UIView {
	NSMutableArray * _touchPoints;
	NSMutableArray * _currentPoints;
	UIColor * _drawColor;
	float drawWidth;
	BOOL shouldDraw;
	BOOL shouldErase;
	BOOL highlighting;
	int page;
	id <AnnotationViewDelegate> delegate;
}

#pragma mark ExternalMethods
- (void)setDrawColor:(UIColor *)selectedDrawColor;
- (void)clear;

@property (nonatomic, retain) NSMutableArray * touchPoints;
@property (nonatomic, retain) NSMutableArray * currentPoints;
@property (nonatomic, retain) UIColor * drawColor;
@property (nonatomic, assign) id <AnnotationViewDelegate> delegate;
@property float drawWidth;
@property BOOL shouldDraw;
@property BOOL shouldErase;
@property BOOL highlighting;
@property int page;
@end
